Skip to main content

Order Book

List of Orders placed for the account Request to be POSTed to uri : /NorenWClientTP/OrderBook

Request Details :

Json FieldsPossible valueDescription
jData*Should send json object with fields in below list
jKey*Key Obtained on login success.
Json FieldsPossible valueDescription
uid*Logged in User Id
prdH / M / ...Product name

Example:

    curl https://apitest.kambala.co.in/NorenWClientTP/OrderBook \
-d "jData={\"uid\":\"VIDYA\"}“ \
-d “jKey=GHUDWU53H32MTHPA536Q32WR”

Response Details :

Response data will be in json Array of objects with below fields in case of success.

Json FieldsPossible valueDescription
statOk or Not_OkOrder book success or failure indication.
exchExchange Segment
tsymTrading symbol / contract on which order is placed.
norenordnoNoren Order Number
prcOrder Price
qtyOrder Quantity
mkt_protectionMarket Protection percentage
prdDisplay product alias name, using prarr returned in user details.
s_prdt_aliProduct display name
statusOrder status
trantypeB / STransaction type of the order
prctypLMT / MKT / SL-MKT / SL-LMTPrice type
fillsharesTotal Traded Quantity of this order(will not be present if no trades for this order)
avgprcAverage trade price of total traded quantity (will not be present if no trades for this order)
rejreasonIf order is rejected, reason in text form
exchordidExchange Order Number
cancelqtyCanceled quantity for order which is in status cancelled.
remarksAny message Entered during order entry.
dscqtyOrder disclosed quantity.
trgprcOrder trigger price
retDAY / IOC / EOSOrder validity
uidLogged in User Id
actidLogin users account ID
bpprcBook Profit Price applicable only if product is selected as B (Bracket order )
blprcBook loss Price applicable only if product is selected as H and B (High Leverage and Bracket order )
trailprcTrailing Price applicable only if product is selected as H and B (High Leverage and Bracket order )
amoYes / No
ppPrice precision
tiTick size
lsLot size
tokenContract Token
norentmNoren time stamp
ordenttmOrder entry time
exch_tmExchange update time Format: dd-mm-YYYY hh:MM:SS
snoordt0 for profit leg and 1 for stoploss leg
snonumThis field will be present for product H and B; and only if it is profit/sl order.
sno_fillidSNO fill id
prcftrContract price factor (GNPN)/(GDPD), (used for order value calculation)
multContract price multiplier, (used for order value calculation)
dnameBroker specific contract display name,present only if applicable.
rqtyTo be used in get margin from modify window.
rprcTo be used in get margin from modify window.
rtrgprcTo be used in get margin from modify window, for H/B products only
rblprcTo be used in get margin from modify window, for H/B products only
rorgqtyTo be used in get margin from modify window.
rorgprcTo be used in get margin from modify window.
orgtrgprcTo be used in get margin from modify window, for H/B products only
orgblprcTo be used in get margin from modify window, for H/B products only
algo_nameAlgo Name
add_ord_idBasket Order Id
CCUST_FIRM_C
brnchidRegion id
instnameInstrument Name
ordersourceOrder Source
st_intrn
rejbyIf an order is rejected, it will indicate from where it got rejected.
src_uidSource User Id

Response data will be in json format with below fields in case of failure:

Json FieldsPossible valueDescription
statNot_OkOrder book failure indication.
request_timeResponse received time.
emsgError message

Sample Success Output :

Success response :

[
{
“stat” : “Ok”,
“exch” : “NSE” ,
“tsym” : “ACC-EQ” ,
“norenordno” : “20062500000001223”,
“prc” : “127230”,
“qty” : “100”,
“prd” : “C”,
“status”: “Open”,
“trantype” : “B”,
“prctyp” : ”LMT”,
“fillshares” : “0”,
“avgprc” : “0”,
“exchordid” : “250620000000343421”,
“uid” : “VIDYA”,
“actid” : “CLIENT1”,
“ret” : “DAY”,
“amo” : “Yes”
},
{
“stat” : “Ok”,
“exch” : “NSE” ,
“tsym” : “ABB-EQ” ,
“norenordno” : “20062500000002543”,
“prc” : “127830”,
“qty” : “50”,
“prd” : “C”,
“status”: “REJECT”,
“trantype” : “B”,
“prctyp” : ”LMT”,
“fillshares” : “0”,
“avgprc” : “0”,
“rejreason” : “Insufficient funds”
“uid” : “VIDYA”,
“actid” : “CLIENT1”,
“ret” : “DAY”,
“amo” : “No”
}
]

Sample Failure Response :

{
"stat":"Not_Ok",
"emsg":"Session Expired : Invalid Session Key"
}